<!-- templates/admin/base_site.html -->
{% extends "admin/base.html" %}
{% load static %}

{% block title %}{{ title }} | {{ site_title|default:_('Django 管理') }}{% endblock %}

{% block extrastyle %}
    {{ block.super }}
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'admin/css/custom.css' %}">
    <style>
        /* 添加一些基础样式 */
        .mr-1 { margin-right: 0.25rem; }
        .mr-2 { margin-right: 0.5rem; }
        .text-primary { color: #4B6FF5; }
        .transition-colors { transition: color 0.2s ease; }
    </style>
{% endblock %}

{% block branding %}
    <h1 id="site-name" class="text-xl font-semibold">
        <a href="{% url 'admin:index' %}" class="flex items-center">
            <i class="fa fa-cube mr-2"></i>
            <span>{{ site_header|default:_('Django 管理') }}</span>
        </a>
    </h1>
{% endblock %}

{% block nav-global %}
    {# 留空或添加其他全局导航项 #}
    {# 移除了重复的用户工具链接 #}
{% endblock %}

{% block footer %}
    <div id="footer" class="bg-gray-50 py-4 px-6 border-t border-gray-200 text-sm">
        <div class="max-w-7xl mx-auto">
            <div class="flex flex-col md:flex-row justify-between items-center space-y-2 md:space-y-0">
            
            </div>
        </div>
    </div>
{% endblock %}

